package com.ruoyi.system.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 站点对象 station
 * 
 * @author ruoyi
 * @date 2021-01-30
 */
public class Station extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键ID */
    private Long id;

    /** 站点名 */
    @Excel(name = "站点名")
    private String name;

    /** 前一个站点id */
    @Excel(name = "前一个站点id")
    private Long previousId;

    /** 下一个站点id */
    @Excel(name = "下一个站点id")
    private Long nextId;

    /** 发车时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "发车时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date startTime;

    /** 收车时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "收车时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date endTime;

    /** 线路编码 */
    @Excel(name = "线路编码")
    private String code;

    /** 编号 */
    @Excel(name = "编号")
    private String number;

    /** 备注 */
    @Excel(name = "备注")
    private String des;

    /** 花费时间(到下一站分钟数) */
    @Excel(name = "花费时间(到下一站分钟数)")
    private Long spendTime;

    /** 删除标记 */
    @Excel(name = "删除标记")
    private String deleted;

    /** 更新时间 */
    private Date udpateTime;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }
    public void setPreviousId(Long previousId) 
    {
        this.previousId = previousId;
    }

    public Long getPreviousId() 
    {
        return previousId;
    }
    public void setNextId(Long nextId) 
    {
        this.nextId = nextId;
    }

    public Long getNextId() 
    {
        return nextId;
    }
    public void setStartTime(Date startTime) 
    {
        this.startTime = startTime;
    }

    public Date getStartTime() 
    {
        return startTime;
    }
    public void setEndTime(Date endTime) 
    {
        this.endTime = endTime;
    }

    public Date getEndTime() 
    {
        return endTime;
    }
    public void setCode(String code) 
    {
        this.code = code;
    }

    public String getCode() 
    {
        return code;
    }
    public void setNumber(String number) 
    {
        this.number = number;
    }

    public String getNumber() 
    {
        return number;
    }
    public void setDes(String des) 
    {
        this.des = des;
    }

    public String getDes() 
    {
        return des;
    }
    public void setSpendTime(Long spendTime) 
    {
        this.spendTime = spendTime;
    }

    public Long getSpendTime() 
    {
        return spendTime;
    }
    public void setDeleted(String deleted) 
    {
        this.deleted = deleted;
    }

    public String getDeleted() 
    {
        return deleted;
    }
    public void setUdpateTime(Date udpateTime) 
    {
        this.udpateTime = udpateTime;
    }

    public Date getUdpateTime() 
    {
        return udpateTime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("name", getName())
            .append("previousId", getPreviousId())
            .append("nextId", getNextId())
            .append("startTime", getStartTime())
            .append("endTime", getEndTime())
            .append("code", getCode())
            .append("number", getNumber())
            .append("des", getDes())
            .append("spendTime", getSpendTime())
            .append("deleted", getDeleted())
            .append("createTime", getCreateTime())
            .append("udpateTime", getUdpateTime())
            .toString();
    }
}
